<!--
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 14:41:20
 * @LastEditTime: 2023-09-04 15:40:41
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description:   :gridOps="gridOptions" other
-->
<template>
  <sc-VxeTable ref="xGrid" :gridEvts="gridEvents" :tablecode="'pro_process_dmInStoragelist_finance'"
    :url="api.pro.processesStorage.list">
  </sc-VxeTable>
  <save v-if="dialogsave" ref="saveref" @success="handleSuccess" @closed="dialogsave = false">
  </save>
</template>
<script>
import save from "./save";
export default {
  name: "pro_process_dmInStoragelist_finance",
};
</script>
<script setup>

import { ref, nextTick } from "vue";
// , onMounted, reactive, ref
// const router = useRouter();

import api from "@/api";

const xGrid = ref({});
const saveref = ref({});
const dialogsave = ref(false);
const saveOpen = (data) => {
  dialogsave.value = true;
  nextTick(() => {
    saveref.value.setData(data).open();
  })
}
const handleSuccess = () => {
  xGrid.value.refresh();
}
const gridEvents = {
  cellDblclick: ({ row }) => {
    console.log(row);
    saveOpen(row);
  },
};
</script>
